package cn.class2.demo5.main

import cn.class2.demo5.IEat

/**
  * Created by lzd on 2018/11/13.
  */
class Demo3 extends IEat {
  override def sleep(): Unit = {
    println("demo3 sleep")
  }
}

object Demo3 {
  def main(args: Array[String]): Unit = {
    val d = new Demo3
    d.sleep()
    d.eat()
  }
}
